package com.example.demo.pojo.Competitions;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

@Entity
@Data
public class CompetitionScore {
    @Id
    @TableId(type = IdType.AUTO)
    private Integer id;//成绩ID
    private Integer scoreId; // 关联比赛id


    private Integer userCompetitionId; // 用户参赛ID


    private BigDecimal score; // 得分


    private Integer rank; // 排名

}
